home *** CD-ROM | disk | FTP | other *** search
- Path: newsserver.trl.OZ.AU!usenet
- From: t.hand@trl.oz.au (Trevor Hand)
- Newsgroups: comp.lang.c++
- Subject: Re: Serail Port Programming
- Date: 7 Jan 1996 22:07:27 GMT
- Organization: Telstra Research Laboratories
- Message-ID: <4cpg6v$ao@newsserver.trl.OZ.AU>
- References: <4cgjij$lmk@newsbf02.news.aol.com>
- NNTP-Posting-Host: tmp_ip_159.trl.oz.au
- To: prestridge@aol.com
- X-Newsreader: News Xpress Version 1.0 Beta #3
-
- In article <4cgjij$lmk@newsbf02.news.aol.com>,
- prestridge@aol.com (Prestridge) wrote:
- >I am needing a good way of reading from an RS-232 serail port. I am using
- >a Turbo c++ 1.0 compiler and have already tried bioscom to no avail. Any
- >help will be appreciated. My address is prestridge@aol.com.
- >
- I am currently writing a class to test/manipulate the serial port. At the
- momment though I am having some trouble getting a dialog box working - still
- haven't worked out what to use when "this" doesn't work! - once I solve this
- (no pun intended) it should be pretty well fixed. I found a lot of
- information in a book titled "Using Turbo C++ 4.5" by Que, it has a chapter
- titled "Device I/O" and has a number of examples showing, quite clearly too,
- how to talk to the serial port. Most of the functions used are in the Windows
- API, the book "Visual Basic Programmer's Guide to the Windows API" by Appleman
- is considered to be one of the best on the API subject, pretty easy to convert
- from VB to C. My code does not read from the port, just sets up the settings
- and writes strings out. If you would like some of my code that may be
- relevant to help you, let me know and I will send you some, probably 5 or 6
- pages though. Reading from the port is pretty easy.
-
- Trevor Hand
- t.hand@trl.oz.au
-
-
-